#include<stdio.h>
#include<stdlib.h>

struct list{
    int number;
    struct list *next;
};
int main(int argc, char *argv[])
{
    int i = 0;
    struct list *a = malloc(10 * sizeof(struct list));
    for (i = 0; i < 10; i++){
        a[i]->number = i;
        printf("i = %d\n", i);
        a[i]->next = a[i+1];
        if (i == 9)
            a[i]->next = a[0];
    }



    return 0;
}
